﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="hotel_list.aspx.cs" Inherits="MxWeiXinPF.Web.admin.hotel.hotel_list" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />


    <title>微酒店</title>
  <%=PageJSAndStype("list").ToString() %>

    <script type="text/javascript">
        function parentToIndex(id) {
            parent.location.href = "/admin/Index.aspx?id=" + id;
        }
        $(function () {
        });
    </script>
    <style>
       a.shenghe {
        color:red;
        
        }
    </style>
</head>
<body class="mainbody">
    <form id="form1" runat="server">
        <div class="location">
            <a href="javascript:;" class="home"><i class="iconfont icon-home"></i><span>微酒店</span></a>
        </div>
<div id="floatHead" class="toolbar-wrap">
  <div class="toolbar">
    <div class="box-wrap">
      <a class="menu-btn"></a>
                <div class="l-list">
                    <ul class="icon-list">
                        <li><a class="icon-btn add" href="hotel_info.aspx?action=<%=MxWeiXinPF.Common.MXEnums.ActionEnum.Add %>&type=add"  id="itemAddButton"><i  class="iconfont icon-close"></i><span>新增订房商家</span></a></li>                       
                        <li><a class="all" href="javascript:;" onclick="checkAll(this);"><i  class="iconfont icon-check"></i><span>全选</span></a></li>
                        <li>
                            <asp:LinkButton ID="btnDelete" runat="server" CssClass="del" OnClientClick="return ExePostBack('btnDelete');" OnClick="btnDelete_Click"><i class="iconfont icon-delete"></i><span>删除</span></asp:LinkButton></li>
                    </ul>
                </div>
                <div class="r-list">
                  
                    <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
                    <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" OnClick="btnSearch_Click"><i class="iconfont icon-search"></i></asp:LinkButton>
                </div>
            </div>
        </div>
        </div>


        
        <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand" OnItemDataBound="rptList_ItemDataBound">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <thead>
                        <tr>
                            <th >选择</th>
                            <th >商家名称</th>
                            <th >地址</th>
                            <th >电话</th>
                            <th >创建时间</th> 
                            <th >外链代码</th>                          
                            <th >操作</th>
                        </tr>
                    </thead>
                    <tbody class="ltbody">
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="td_c">
                    <td>
                        <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;" />
                        <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                    </td>
                    <td>
                        <%# Eval("hotelName") %>
                    </td>
                      <td>
                        <%# Eval("hotelAddress") %>
                    </td>
                      <td>
                        <%# Eval("hotelPhone") %>
                    </td>
                     <td>
                        <%# Eval("createDate") %>
                        
                    </td>
                    <td>
                     <a href="javascript:;"><%=yuming%>/weixin/hotel/index.aspx?wid=<%=wid %>&hotelid=<%#Eval("id") %></a>
                    </td>
                     <td>                     
                         <a  href='hotel_dingdan_manage.aspx?hotelid=<%#Eval("id") %>' >订单管理</a>
                         <a  href='hotel_info.aspx?hotelid=<%#Eval("id") %>&type=edite'  >商家设置</a>
                         <a  href='hotel_room.aspx?hotelid=<%#Eval("id") %>' >房间设置</a>
                   <%--      <a  href='hotel_form.aspx?hotelid=<%#Eval("id") %>' >表单设计</a>--%>
                        <%-- <a  href='hotel_dingdan_manage.aspx?hotelid=<%#Eval("id") %>' >打印机设置</a>    --%>           
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"7\">暂无记录</td></tr>" : ""%>
                 </tbody>
                </table>
            </FooterTemplate>
        </asp:Repeater>
           <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>
            <div id="PageContent" runat="server" class="default"></div>
        </div>
    </form>
</body>
</html>
